﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="CustomerContactSystem.WebForms.ChangePassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Change Password</h1>
<asp:Placeholder ID="ChangePasswordContent" runat="server">
<fieldset>
    <legend>Change Password:</legend>

    <asp:label ID="OldPasswordCaption" runat="server" Text="Current Password:" AssociatedControlID="OldPassword"></asp:label>
    <asp:TextBox ID="OldPassword" runat="server" TextMode="password" MaxLength="20"></asp:TextBox>

    <asp:label ID="PasswordCaption" runat="server" Text="New Password (max. 20):" AssociatedControlID="Password"></asp:label>
    <asp:TextBox ID="Password" runat="server" TextMode="Password" MaxLength="20"></asp:TextBox>

    <asp:label ID="Password2Caption" runat="server" Text="Password again:" AssociatedControlID="Password2"></asp:label>
    <asp:TextBox ID="Password2" runat="server" TextMode="Password" MaxLength="20"></asp:TextBox>

    <asp:Button ID="SaveNewPassword" runat="server" Text="Save" CssClass="submit" OnClick="SaveNewPasswordClick" />
    <asp:Label ID="ErrorMsg" runat="server" CssClass="error"></asp:Label>
</fieldset>
</asp:Placeholder>
<asp:Placeholder ID="PasswordChangedContent" runat="server" Visible="false">
    <p>Your Password has been updated and a confirmation email sent to you.</p>
</asp:Placeholder>    
</asp:Content>
